home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / db / esm-3.1 / esm-3 / usr / local / sm / src / makefile.options < prev    next >
Encoding:
Makefile  |  1996-05-05  |  3.1 KB  |  116 lines

  1. #
  2. # $RCSfile: makefile.options,v $ 
  3. # $Revision: 1.2 $ $Date: 1996/05/04 23:51:42 $
  4. #
  5.  
  6. #
  7. #  *********************************************** MACH_TYPE_RS6000
  8. #
  9. # Define this variable if compiling on an IBM RS6000
  10. #MACH_TYPE_RS6000 = TRUE
  11.  
  12. #
  13. #  ******************************************************** SUFFIX
  14. #
  15. #
  16. # If the disk process is made with flags that don't correspond
  17. # to those of the sm_server the two processes won't
  18. # interact properly.
  19. # In order to allow several differently made version to coexist,
  20. # the name of the diskrw process reflects the flags
  21. # used to make it.  
  22. # WHENEVER YOU CHANGE THE DEBUGFLAGS, remember to 
  23. # YOU MUST CHANGE SUFFIX (below) ACCORDINGLY!
  24. #
  25. # ---------------------------------------------------------------- 
  26. # Here are options for different configurations :
  27. # ---------------------------------------------------------------- 
  28. # normal use: SUFFIX=, DEBUGFLAGS=
  29. #
  30. # debugging version: SUFFIX=.debug, DEBUGFLAGS= -DDEBUG -g
  31. #
  32. # profiled version: SUFFIX=.prof, DEBUGFLAGS= -DPROFIL -p
  33. #
  34. # IPS version : SUFFIX=.ips, DEBUGFLAGS = -O -DIPS_SUPPORT
  35. #
  36.  
  37. #SUFFIX=.debug
  38. #DEBUGFLAGS= -DDEBUG -g
  39. SUFFIX=
  40. DEBUGFLAGS= -O
  41.  
  42. #
  43. #  ******************************************************** IPS SUPPORT
  44. #
  45. # IPS compilation support requires the ips cc compiler to be used
  46. # (including by the AT&T C++ compiler).  Also, IPS_SUPPORT must
  47. # be defined.
  48. #
  49. #ccC = /usr/public/ips/cc
  50. #CC = $(ccC) -pi
  51. #CPLUSPLUS = ccC=$(ccC) CC -pi
  52. #SUFFIX=.ips
  53. #DEBUGFLAGS = -O -DIPS_SUPPORT
  54. #
  55.  
  56.  
  57. #
  58. # DO NOT TOUCH THESE 3 MACROS:
  59. #
  60. DISKRW=diskrw$(SUFFIX)
  61. SERVER=sm_server$(SUFFIX)
  62. FORMATVOL=formatvol$(SUFFIX)
  63.  
  64. #
  65. #  ******************************************************* MAKE macrocs
  66. #
  67. RM = /bin/rm
  68. AR = /usr/bin/ar
  69.  
  70. #
  71. #  ******************************************************** DEBUGFLAGS
  72. #
  73. #
  74. # The following macro is used to control debugging (and any other
  75. # options, really)
  76. # See also SUFFIX, above.
  77. #     -DDEBUG : includes all sorts of internal checks
  78. #    -g        : symbols for dbx
  79. #     -DPROFIL -p: includes code for handling the commands to dump
  80. #                prof(1) info in a file.  The -p flag is required
  81. #                when -DPROFIL is used.
  82. #    -O        : optimize when debugging is not on.  with some
  83. #                compilers, can't use -O with -g.  With others, you
  84. #                HAVE to use -O if you don't use -DDEBUG or else you'll
  85. #                get bogus references from ASSERTS (no -O means not even
  86. #                boolean short-circuiting is done with CONSTANT expressions,
  87. #                for g++, anyway)
  88. #
  89. # (We use RELEASE_FLAGS only to make the mechanized release stuff easier,
  90. # since it uses sed to change the UW default  to the release default.)
  91. # DO NOT DELETE RELEASE_FLAGS: make binary_release uses it!!!
  92. #
  93. RELEASE_FLAGS = -O
  94. #DEBUGFLAGS = -O
  95.  
  96. #
  97. #  ******************************************************* LD FLAGS
  98. #
  99. # When linking an executable, these flags are passed to LD.
  100. # In general there does not need to be any flags set, but
  101. # on HP-UX a server linked with g++ will crash on initialization
  102. # unless the -static option is used when linking.
  103. #
  104. LDFLAGS = -static
  105.  
  106. #
  107. #  ******************************************************* COMPILERS
  108. #
  109. #
  110. # Compilers
  111. #
  112. CPLUSPLUS = g++ -I/usr/include
  113. CC = $(CPLUSPLUS)
  114. CPP = $(CPLUSPLUS) -E
  115.  
  116.